package cn.lliiooll.ippzonetoolbox.utils;

import java.util.Random;

public class StringUtils {

    final static String str = "abcdefhiklnmorstuvwxz0123456789";

    public static String random(int size) {
        String[] zd = (str.toLowerCase() + str.toUpperCase()).split("");
        Random r = new Random();
        StringBuilder result = new StringBuilder();
        for (int i = 0; i < size; i++) {
            result.append(zd[r.nextInt(zd.length)]);
        }
        return result.toString();
    }
}
